/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jtablecolspan;

import javax.swing.table.DefaultTableModel;

/**
 *
 * @author jbf
 */
class MyTableModel extends DefaultTableModel {

    public MyTableModel() {
        super( 3, 4);
        for ( int icol=0; icol<4; icol++ ) {
            for ( int jrow=0; jrow<3; jrow++ ) {
                if ( jrow==0 ) {
                    setValueAt( "this is my very very very long string", jrow, icol );
                } else {
                    setValueAt( "cell"+ ( icol*3 + jrow ), jrow, icol );
                }
            }
        }
    }

    
}
